* search.c: Integer overflow fixes
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Sep 2011 17:27:38 +0000 (10:27 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Sep 2011 17:27:38 +0000 (10:27 -0700)
commit4fc4a8fa3ff3dc19f8d270a43e3955a9d4b84868
treeb554549a25c472a1c5309ec147b3218a01078dc4
parentff545d58cc2759a6cd8dc2589d19b5a9daeec035
* search.c: Integer overflow fixes

(Freplace_match): Use ptrdiff_t, not int, for indexes that can
exceed INT_MAX.  Check that EMACS_INT value is in range before
assigning it to the (possibly-narrower) index.
(match_limit): Don't assume that a fixnum can fit in 'int'.
src/ChangeLog
src/search.c